import uviewPlus from "@/uni_modules/uview-plus";
import { createPinia } from "pinia";
import { createSSRApp } from "vue";

import App from "./App.vue";

//引入请求配置
import '@/utils/request.js'
//uni全局配置
uni.$u.http.setConfig((config : any) => {
	return config
})

export function createApp() {
	const app = createSSRApp(App);
	app.use(uviewPlus);
	app.use(createPinia());
	return {
		app,
	};
}